<?php


namespace part16_StateMode\Code4;

/**
 * 下班休息状态类
 */
class RestState extends State
{
    public function writeProgram($work)
    {
        echo "当前时间：{$work->getHour()} 点 下午回家了\n";
    }
}